package asnv.fgh;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class NavigateActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	
	 Button usemirror ;
	 Button b1;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        usemirror = (Button) findViewById(R.id.button);
        b1 = (Button) findViewById(R.id.cancel);
        //b1.setOnClickListener(this);
        b1.setOnClickListener(this);
              
        
        //usemirror.setOnClickListener(this);

       // setContentView(R.layout.main);
    }
    
   
    
    public void onClick(View view){


        //Intent mi = new Intent(this , page2.class);
        
        //startActivity(mi);
    	Intent m=new Intent();
    	m.putExtra("get", "page2");
    	m.setClass(this, page2.class);
    	this.startActivity(m);
}


    
    public void submit(View Button) 
    {
     // TODO Auto-generated method stub
    	Intent i=new Intent();
    	//System.out.println("hello name is "+et.getText().toString());
    	i.putExtra("name","page1");
    	i.setClass(this, page1.class);
    	this.startActivity(i);
     }
}